<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>

<?php $plate=select_one_line_all_items($table_Prefix."plate","mid = 'case'"); ?>



<?



?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controller/common/module/head.php'); ?>
<? include_once("../controller/data_list.php"); ?>
</head>

<body>

<div id="topbar"><?php include ROOT_PATH_.'/controller/common/module/topbar.php'; ?></div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/module/sidebar.php'; ?>
        </div>




<div id="content">




<div class="detail-box select-box layui-form">


    <!--标题设定-->
    <?php $page_title=$_plate['name'].'列表';?>
    <?php include $_SERVER['DOCUMENT_ROOT']. '/controller/common/module/mod-page-title.php'; ?>



    <form action="detail-list.php" >

    <div class="layui-form-item">
        <label class="layui-form-label">关键词</label>
        <div class="layui-input-block">
            <input type="text" name="select_keywords" placeholder="可搜索名称，备注" autocomplete="off" class="layui-input" value="<? echo $_REQUEST['select_keywords']?>" >
        </div>
    </div>





    <br class="clearfloat"/>


    <button class="layui-btn">查找</button>


    <br class="clearfloat"/>
</form>

    <br class="clearfloat"/>
</div>





<!-- 用$system_part .list_boxes来控制来到确认板块信息显示-->
<div class="list-box">




<div class="list-boxes layui-form">



<table class="layui-table">
  <colgroup>
    <col width="80">
    <col width="300">
	<col > 
	<col > 
	<col > 
	<col > 
	<col >
	<col >
	<col >
	<col >

  </colgroup>
  <thead>
    <tr>
      <th>序号</th>
      <th>名称</th>
      <th>状态</th>
      <th>时间</th>
      <th>类型</th>
      <th>总额</th>
      <th>操作</th>

    </tr> 
  </thead>
  <tbody>





<?php
for ($i = 0; $i < $detailnum; $i++) {
?>


<!--//查看这条信息有无修改申请，有的话就变色，提示修改中-->
<? $applymodify=select_one_line_all_items($table_Prefix."member","sid='".$detail[$i]['nid']."' and applystatus='申请修改'") ;?>


<tr id="item<?echo $detail[$i]['nid']?>" <?if($applymodify['nid']){echo "style='color:red'";$status="审核中";}else{$status="正常";}?>>


<td><?echo $i+1+$plate['page_list_num']*($nowpageid-1) ?></td>
<td>【<?echo $unit_name_list[$detail[$i]['unit']]?>】<?echo $detail[$i]['name']?></td>

<td><?echo $detail[$i]['status']?></td>
<td><?echo substr($detail[$i]['startdate'],0,10)?> - <?echo substr($detail[$i]['enddate'],0,10)?> / <?echo count_days($detail[$i]['startdate'],$detail[$i]['enddate'])?> 日 </td>

<td><?echo $detail[$i]['type']?></td>
<td><?echo $detail[$i]['sum']?></td>



<td>



<a href="../unit/detail-statistic.php?&nid=<? echo $detail[$i]['unit']?><?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part.$term_nid ?><?echo $url_str?>" class="layui-btn layui-btn-primary layui-btn-small" target="_blank vftg bgcbcbc" >信息</a>


<? if(in_array("admin",$quanxian)){?>
        <a href="detail-edit.php?nid=<? echo $detail[$i]['nid']?><?echo $pagenumber_url.$sortby_url.$navitemed_url.$system_part.$term_nid ?>" class="layui-btn layui-btn-primary layui-btn-small" >
            <i class="layui-icon">&#xe642;</i>修改
        </a>


<a href="javascript:void(0)" onclick="delItem (<?php echo $detail[$i]['nid']?>)" class="delete layui-btn layui-btn-primary layui-btn-small" > <i class="layui-icon">&#xe640;</i> 删除 </a>
<?}?>



  </td>
    </tr>
<?}?>

 
  </tbody>
</table>




 

</div>


<div class="list-box-function"
<? if ($detailnum == 0) {
    echo "style" . "='display:none'";
} ?>
>

    <?php include 'page_numbers.php'; ?>

</div>




<!--list-box end-->
</div>

<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>








<?php include_once('../modules/footer.php'); ?> </body>
</html>